package com.core.logMonitor;

import org.apache.log4j.WriterAppender;

import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * User: lxf
 * Date: 2016/10/12
 * Time: 15:52
 * To change this template use Editor | File and Code Templates.
 */
public class Log4jAppender extends WriterAppender {

    private Writer writer = new Log4jAsyncWriter();

    public Log4jAppender() {
        setWriter(writer);
    }

}
